package com.han.fu.api.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.han.fu.api.business.entity.File;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 文件Mapper接口
 *
 * @author star
 * @date 2021-08-15
 */
@Mapper
public interface FileMapper extends BaseMapper<File> {

    /**
     * 根据业务ID删除文件
     *
     * @param businessId
     */
    void updateByBusinessId(String businessId);

    /**
     * 根据业务ID查询文件列表
     *
     * @param businessId
     * @return List<String>
     */
    List<String> queryFilesByBusinessId(String businessId);

}
